namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0158 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.IcmDispenseHistory", "ReqDtlId", c => c.Int());
            AddColumn("dbo.IcmMovementHistory", "TranGrpId", c => c.Int());
            AlterColumn("dbo.IcmAsset", "IsLowerAsset", c => c.Boolean(nullable: false));
            CreateIndex("dbo.IcmDispenseHistory", "ReqDtlId");
            AddForeignKey("dbo.IcmDispenseHistory", "ReqDtlId", "dbo.IcmRequestParcelDtl", "ReqDtlId");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.IcmDispenseHistory", "ReqDtlId", "dbo.IcmRequestParcelDtl");
            DropIndex("dbo.IcmDispenseHistory", new[] { "ReqDtlId" });
            AlterColumn("dbo.IcmAsset", "IsLowerAsset", c => c.Boolean());
            DropColumn("dbo.IcmMovementHistory", "TranGrpId");
            DropColumn("dbo.IcmDispenseHistory", "ReqDtlId");
        }
    }
}
